bitkeeper revision 1.1319 (4264295cjYBiljHc4G82B7WseRd9vA)
authoriap10@freefall.cl.cam.ac.uk <iap10@freefall.cl.cam.ac.uk>
Mon, 18 Apr 2005 21:40:44 +0000 (21:40 +0000)
committeriap10@freefall.cl.cam.ac.uk <iap10@freefall.cl.cam.ac.uk>
Mon, 18 Apr 2005 21:40:44 +0000 (21:40 +0000)
The problem is that GCC4 is seeing is that variable such as frame (in
grant_table.c) is passed into a function without initialization. Again for the variable sl1mfn  (in shadow.c) does the same thing. So really the patches should be:

Signed-off-by: Jerone Young <jyoung5@us.ibm.com>
xen/arch/x86/shadow.c
xen/common/grant_table.c

index 71867b7649faf2b467a4698e2ca816492603742f..6f778a147fdc7c9835689dcf6c070dab9df5fe18 100644 (file)
@@ -1651,7 +1651,7 @@ static inline unsigned long
 shadow_make_snapshot(
     struct domain *d, unsigned long gpfn, unsigned long gmfn)
 {
-    unsigned long smfn, sl1mfn;
+    unsigned long smfn, sl1mfn = 0;
     void *original, *snapshot;
     u32 min_max = 0;
     int min, max, length;
index 76ea9819348998aad2699f3214bacdb2e5f11143..e93f05fd819e1243fce0fb613b56b6072431720d 100644 (file)
@@ -311,7 +311,7 @@ __gnttab_map_grant_ref(
     struct exec_domain   *led;
     u16                   dev_hst_ro_flags;
     int                   handle;
-    unsigned long         frame, host_virt_addr;
+    unsigned long         frame = 0, host_virt_addr;
     int                   rc;
 
     /* Returns 0 if TLB flush / invalidate required by caller.